|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /usr/local/CyberPanel/lib/python3.10/site-packages/paramiko/__pycache__/ |
Upload File : |
o
��g�- � @ s� d Z ddlmZmZ ddlmZ ddlmZmZ ddl m
Z
ddlmZm
Z
ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZ G dd
� d
�ZG dd� d�ZG dd� de�ZdS )z
ECDSA keys
� )�InvalidSignature�UnsupportedAlgorithm)�default_backend)�hashes�
serialization)�ec)�decode_dss_signature�encode_dss_signature)� four_byte)�Message)�PKey)�SSHException)�deflate_longc @ s e Zd ZdZdd� ZdS )�_ECDSACurvez�
Represents a specific ECDSA Curve (nistp256, nistp384, etc).
Handles the generation of the key format identifier and the selection of
the proper hash function. Also grabs the proper curve from the 'ecdsa'
package.
c C sT || _ |j| _d| j | _| jdkrtj| _n| jdkr!tj| _ntj| _|| _ d S )N�ecdsa-sha2-� i� )
� nist_name�key_size�
key_length�key_format_identifierr �SHA256�hash_object�SHA384�SHA512�curve_class)�selfr r � r �G/usr/local/CyberPanel/lib/python3.10/site-packages/paramiko/ecdsakey.py�__init__0 s
z_ECDSACurve.__init__N)�__name__�
__module__�__qualname__�__doc__r r r r r r '